package com.price.httplib.interceptor

import com.price.common.extend.logDebug
import okhttp3.Interceptor
import okhttp3.Response

class CommonResponseInterceptor:Interceptor {
    override fun intercept(chain: Interceptor.Chain): Response {
        val requestTime = System.currentTimeMillis()

        //只能有一次chain.proceed
        val response = chain.proceed(chain.request())
        logDebug("requestTime=" + (System.currentTimeMillis() - requestTime))
        return response
    }
}